<div class="m-portlet m-portlet--mobile">
    <div class="m-portlet__head">
        <div class="m-portlet__head-caption">
            <div class="m-portlet__head-title">
                <h3 class="m-portlet__head-text">
                    仓库列表
                </h3>
            </div>
        </div>
    </div>
    <div class="m-portlet__body">
        <p-tree
            [value]="treeData"
            selectionMode="single"
            [(selection)]="selectedItem"
            (onNodeSelect)="nodeSelect($event)"
            (onNodeDrop)="nodeDrop($event)"
            [contextMenu]="itemContextMenu"
        ></p-tree>
        <p-contextMenu
            #itemContextMenu
            [model]="itemContextMenuItems"
            appendTo="body"
            baseZIndex="99999"
        ></p-contextMenu>
    </div>
</div>
